package a.j.b;

import a.d.u;
import a.j.qb;

import javax.swing.*;
import java.awt.*;

abstract class g
  implements qb
{
  protected double a;
  protected double b;
  protected double c;
  protected double d;
  
  public void a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    this.a = paramDouble1;
    this.b = paramDouble2;
    this.c = Math.ceil(paramDouble3);
    this.d = Math.ceil(paramDouble4);
  }
  
  public Rectangle getBounds()
  {
    return new Rectangle((int)this.a, (int)this.b, (int)this.c, (int)this.d);
  }
  
  static class c_
    implements qb
  {
    private qb a;
    
    public qb a()
    {
      return this.a;
    }
    
    public void a(qb paramqb)
    {
      this.a = paramqb;
    }
    
    public void paint(Graphics2D paramGraphics2D)
    {
      if ((f.Wb != 0) || (this.a != null)) {
        this.a.paint(paramGraphics2D);
      }
    }
    
    public Rectangle getBounds()
    {
      return (f.Wb != 0) || (this.a != null) ? this.a.getBounds() : new Rectangle();
    }
  }
  
  static class b_
    extends g
  {
    private double e;
    private boolean f;
    private Color g = new Color(0, 222, 0, 192);
    private Stroke h = new BasicStroke(2.0F);
    
    public void paint(Graphics2D paramGraphics2D)
    {
      int i1 = f.Wb;
      paramGraphics2D.setColor(this.g);
      paramGraphics2D.setStroke(this.h);
      int i = (int)this.a;
      int j = (int)this.b;
      int k = (int)this.c;
      int m = (int)this.d;
      int n = (int)a();
      if (i1 == 0)
      {
        paramGraphics2D.drawRect(i, j, k, m);
        if (b())
        {
          if (i1 != 0) {
            break label118;
          }
          paramGraphics2D.drawLine(i + n, j, i + n, j + m);
          if (!f.Vb) {
            return;
          }
        }
      }
      label118:
      paramGraphics2D.drawLine(i, j + n, i + k, j + n);
    }
    
    public double a()
    {
      return this.e;
    }
    
    public void a(double paramDouble)
    {
      this.e = paramDouble;
    }
    
    public boolean b()
    {
      return this.f;
    }
    
    public void a(boolean paramBoolean)
    {
      this.f = paramBoolean;
    }
  }
  
  static class a_
    extends g
    implements Icon
  {
    private Stroke e = c.e;
    private Color f = new Color(0, 128, 0);
    private Color g = new Color(0, 196, 0, 64);
    private u h = new u(0.0D, 0.0D, 0.0D, 0.0D);
    
    public void paint(Graphics2D paramGraphics2D)
    {
      if (f.Wb == 0) {
        if (this.e != null) {
          paramGraphics2D.setStroke(this.e);
        }
      }
      paintIcon(null, paramGraphics2D, (int)this.a, (int)this.b);
    }
    
    public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2)
    {
      int k = f.Wb;
      int i = 0;
      if ((k != 0) || (paramComponent != null)) {
        i = paramComponent.getWidth() - 2;
      }
      int j = (k != 0) || (i > getIconWidth()) ? (i - getIconWidth()) / 2 : 0;
      if (k == 0)
      {
        if (this.g != null)
        {
          paramGraphics.setColor(this.g);
          paramGraphics.fillRect(paramInt1 + j, paramInt2, (int)this.c, (int)this.d);
        }
        if (k != 0) {}
      }
      else if (this.f != null)
      {
        paramGraphics.setColor(this.f);
        paramGraphics.drawRect(paramInt1 + j, paramInt2, (int)this.c, (int)this.d);
      }
      if (((k != 0) || (this.h != null)) && ((k != 0) || ((this.h.b + this.h.d < this.d) && ((k != 0) || (this.h.c + this.h.e < this.c)))))
      {
        if (k == 0) {
          if (this.g != null)
          {
            paramGraphics.setColor(this.g);
            paramGraphics.fillRect((int)(paramInt1 + j + this.h.c), (int)(paramInt2 + this.h.b), (int)(this.c - this.h.c - this.h.e), (int)(this.d - this.h.b - this.h.d));
          }
        }
        if (this.f != null)
        {
          paramGraphics.setColor(this.f);
          paramGraphics.drawRect((int)(paramInt1 + j + this.h.c), (int)(paramInt2 + this.h.b), (int)(this.c - this.h.c - this.h.e), (int)(this.d - this.h.b - this.h.d));
        }
      }
    }
    
    public int getIconWidth()
    {
      return (int)this.c;
    }
    
    public int getIconHeight()
    {
      return (int)this.d;
    }
    
    public Stroke a()
    {
      return this.e;
    }
    
    public void a(Stroke paramStroke)
    {
      this.e = paramStroke;
    }
    
    public Color b()
    {
      return this.f;
    }
    
    public void a(Color paramColor)
    {
      this.f = paramColor;
    }
    
    public Color c()
    {
      return this.g;
    }
    
    public void c(Color paramColor)
    {
      this.g = paramColor;
    }
    
    public u d()
    {
      return this.h;
    }
    
    public void a(u paramu)
    {
      this.h = paramu;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.g

 * JD-Core Version:    0.7.0.1

 */